# _*_coding:utf-8 _*_
# @Author: 李吉凯
# @Email:
# @Time   : 2021/8/27 9:06
# @File   : Test_First_TaskDistribution.py

import pytest
from BladeFerm.UI.DataOprationOfExcel import load_Test_datas
from BladeFerm.UI.NcPublic import *
# sys.path.append(os.getcwd())
from 内控评价管理.年度自评.流程测试.业务部门填写 import test as test_fill


class TestVerify():
    def setup_class(self):
        login('ctsjsh', '1')
        # openWebPage(setup_flag=1)
        self.word_space = config['ScriptsDir']['scripts_dir']
        logger.info(f'Work space: {self.word_space}')
        logger.info('Action setup_class')

    def teardown_class(self):
        close(setup_flag=1)
        logger.info('Action teardown_class')

    @pytest.mark.parametrize('data', load_Test_datas('../测试数据/年度自评/年度自评_部门填写.xls'))
    def test_verify_fill(self, data):
        test_fill(input_data=data[1], ui_except=data[2], input_elements=data[0])
